package com.ocom.mjrecode.feign;

import com.ocom.common.constant.AccessServiceUrl;
import com.ocom.common.entity.access.EntityMjDeviceInfo;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "access")
public interface AccessClientService {

    @PostMapping(AccessServiceUrl.Url_AccessDeviceGetDeviceByDeviceNo)
    public Result<EntityMjDeviceInfo> GetDeviceByDeviceNo(@Validated @RequestParam String deviceNo, @RequestParam Long comId);
}
